
define(['./app'], function (app) {
    'use strict';
    return app.config(function ($stateProvider,$urlRouterProvider) {

        $stateProvider.state('error',{
            url:'/error',
            templateUrl:'404.html'
        }).state('index',{
                url:'/index',
                templateUrl:"app/index/indexmain.html"
            })
            //提交微信小程序
            .state('updatewxsapp',{
                url:'/updatewxsapp',
                templateUrl:'updatewxsapp.html',
                params:{
                    operate:'save'
                }
            })
            //搜索小程序
            .state('search',{
                url:'/search',
                templateUrl:'index.html',
                params:{
                    operate:'find'
                }
            });

    });
});
